package com.soriya.nestlive.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.soriya.nestlive.entity.PageResult;
import com.soriya.nestlive.entity.VideoEntity;
import com.soriya.nestlive.entity.param.VideoListParam;
import com.soriya.nestlive.entity.param.VideoPublishParam;
import com.soriya.nestlive.entity.vo.VideoDetailVo;

public interface VideoService extends IService<VideoEntity> {
    PageResult<VideoEntity> pageQuery(Page<VideoEntity> page, VideoListParam param);

    boolean publishVideo(VideoPublishParam param);

    VideoDetailVo getDetailById(Long id);

    PageResult<VideoDetailVo> getByChannelId(Long channelId, Integer current, Integer page);

    PageResult<VideoDetailVo> getByCategoryId(Long categoryId, Integer current, Integer page);
}
